package com.test.qpbgboot.evaluation.mapper;

import com.test.qpbgboot.evaluation.pojo.dto.OrderEvaluationQuery;
import com.test.qpbgboot.evaluation.pojo.entity.OrderEvaluation;
import com.test.qpbgboot.evaluation.pojo.vo.OrderEvaluationVO;

import java.util.List;

public interface OrderEvaluationMapper {
    List<OrderEvaluationVO> selectOrderEvaluationVObyOrderEvaluationQuery(OrderEvaluationQuery orderEvaluationQuery);
    Double selectAvgRatingByShopId(Long shopId);
    Double selectAvgRatingByRoomId(Long roomId);
    Long selectLikesByShopId(Long shopId);
    void insert(OrderEvaluation orderEvaluation);
    void update(OrderEvaluation orderEvaluation);
    void deleteById(Long id);
}
